<div class="row">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'module-_form-form',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(  
        'validateOnSubmit'=>true,  
     ),
)); ?>

<table class="table table-bordered table-hover definewidth">
    <tbody>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'module_name'); ?>
            </td>
            <td>
                <?php echo $form->textField($oModel,'module_name'); ?>
                <?php echo $form->error($oModel,'module_name'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'module'); ?>
            </td>
            <td>
                <?php echo $form->textField($oModel,'module'); ?>
                <?php echo $form->error($oModel,'module'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'url'); ?>
            </td>
            <td>
                <?php echo $form->textField($oModel,'url'); ?>
                <?php echo $form->error($oModel,'url'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'version'); ?>
            </td>
            <td>
                <?php echo $form->textField($oModel,'version'); ?>
                <?php echo $form->error($oModel,'version'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'setting'); ?>
            </td>
            <td>
                <?php echo $form->textArea($oModel,'setting'); ?>
                <?php echo $form->error($oModel,'setting'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'description'); ?>
            </td>
            <td>
                <?php echo $form->textArea($oModel,'description'); ?>
                <?php echo $form->error($oModel,'description'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($oModel,'disable'); ?>
            </td>
            <td>
                <?php echo $form->radioButtonList($oModel,'disable',Yii::app()->dict->get('module' ,'disable') ,array('separator'=>'&nbsp;')); ?>
                <?php echo $form->error($oModel,'disable'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft"></td>
            <td>
                <?php echo CHtml::submitButton('保存',array('class'=>'button button-primary'));?>
                <?php echo CHtml::link('返回列表',$this->createUrl('module/index'),array('class'=>'button button-success'));?>
            </td>            
        </tr>
    </tbody>
</table>
<?php $this->endWidget(); ?>
</div>